package com.wodogs.utils.process;

import java.util.List;

import com.wodogs.utils.BaseProcess;
import com.wodogs.utils.bean.WfAccount;
import com.wodogs.utils.bean.WfProxy;
import com.wodogs.utils.service.AccountService;
import com.wodogs.utils.service.ProxyService;

public class LoginProcess extends BaseProcess{

	@Override
	public void setAccountList(){
		List<WfAccount> accountList =  AccountService.getResetList(getWeb_site(),null);
		getListData().setAccountList(accountList);
//		setAccountList(accountList);
	}
	
	@Override
	public java.util.List<WfProxy> getOkList(String last_proxy) {
//		String test_str = "http://longzhu.com/";
		List<WfProxy> proxyListLast = ProxyService.getOkList(getProxyWebSite(),getProxyTestUrl(),null,last_proxy, getListData().getAccountList().size()*10);
		return proxyListLast;
	}
}
